import request from '@/utils/request'

// 查询用户任务列表
export function listUserTask(query) {
  return request({
    url: '/admin/task/getTaskLevelList',
    method: 'get',
    params: query
  })
}

export function getUserTaskList(query) {
  return request({
    url: '/admin/task/getTaskInfoList',
    method: 'get',
    params: query
  })
}

// 查询用户领取任务详细
export function getUserTask(query) {
  return request({
    url: '/admin/task/getTaskLevelPaymentInfoResult',
    method: 'get',
    params:query
  })
}

export function audit(data) {
  return request({
    url: '/admin/task/audit',
    method: 'put',
    data:data
  })
}

export function getOverdueTaskPage(query) {
  return request({
    url: '/admin/task/getUserTaskInfoList',
    method: 'get',
    params: query
  })
}

//任务等级充值列表
export function taskLevelPaymentListPage(query) {
  return request({
    url: '/admin/task/taskLevelPayment/list',
    method: 'get',
    params: query
  })
}

// 用户列表任务
export function getlistUserTask(query) {
  return request({
    url: '/admin/task/listUserTask',
    method: 'get',
    params: query
  })
}

// 用户列表任务审核
export function UserTaskAudit(data) {
  return request({
    url: '/admin/task/userUploadTask/audit',
    method: 'put',
    data:data
  })
}

// 用户列表任务异常
export function submitError(data) {
  return request({
    url: '/admin/task/userUploadTask/submitError',
    method: 'put',
    data:data
  })
}